package Poker;
import java.util.Comparator;

import Poker.Card;


public class CardComparator implements Comparator<Card> {
	public int compare(Card c1, Card c2)
	{
        if(c1.GetFigure() < c2.GetFigure())
            return 1;
        else if(c1.GetFigure() > c2.GetFigure())
            return -1;
        else
            return 0;    
    }
}
